---
title: JSON.decode()
api: JSON.decode
---

## Description

<Summary/>

The input to this method is expected to be a [Data](/reference/api/Data). If you have a string input, use [JSON.parse()](/reference/api/JSON/parse) instead.

## Syntax

``` js
JSON.decode(data)
```

## Parameters

<Parameters/>

## See Also

* [JSON](/reference/api/JSON)
* [parse()](/reference/api/JSON/parse)
* [encode()](/reference/api/JSON/encode)
